package com.vf.admin.platform.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.platform.dao.ApiDao;
import com.vf.admin.platform.entity.AppImage;
import com.vf.admin.platform.entity.Api;
import com.vf.admin.platform.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiServiceImpl implements ApiService {
    @Autowired
    private ApiDao btClientDao;

    @Override
    public void save(Api client) {
        btClientDao.save(client);
    }

    @Override
    public Api get(Integer id) {
        return btClientDao.get(id);
    }

    @Override
    public List<Api> findList(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return btClientDao.findList(paraMap,splitPage);
    }

    @Override
    public void del(int id) {
        btClientDao.del(id);
    }


    @Override
    public void saveImage(AppImage image) {
        btClientDao.saveImage(image);
    }

    @Override
    public List<AppImage> findListImage(SplitPageBean splitPage) {
        return btClientDao.findListImage(splitPage);
    }

    @Override
    public AppImage getImage(Integer id) {
        return btClientDao.getImage(id);
    }
}
